home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 2
/
Gold Medal Software Volume 2 (Gold Medal) (1994).iso
/
windows
/
win31
/
macsyma.arj
/
MACSDEMO.EXE
/
UNITS.OUT
< prev
next >
Wrap
Text File
|
1993-09-15
|
7KB
|
229 lines
(c1) /*
DEMONSTRATION OF PACKAGE `UNITS'
*/
(ratprint:false, if get('units,'version)=false then load("units"))$
C:\MACSD2B\share\units.fas being loaded.
(c2) /* ************************************************************
Some Examples of Conversion to MKS Units
*/
0.5*(32.*feet/sec^2)*(3.5*minutes)^2;
|$label(0,15,Times New Roman,$(d2$))215066.8$hinge()$in( )meter
(c3) 152.*miles/(2.5*hours);
|$label(0,15,Times New Roman,$(d3$))$q(27.1742$in( )meter,second)
(c4) 700.*dynes/cm^2;
|$label(0,15,Times New Roman,$(d4$))$q(70.0$in( )kilogram,meter$in( )$sup(second,2))
(c5) 12000.*btu/hour;
|$label(0,15,Times New Roman,$(d5$))$q(3514.5$in( )meter$in( )newton,second)
(c6) /* ************************************************************
1. Space and Time
*/
/*** Time ***/
14*days;
|$label(0,15,Times New Roman,$(d6$))1209600.0$hinge()$in( )second
(c7) 48*hours;
|$label(0,15,Times New Roman,$(d7$))172800.0$hinge()$in( )second
(c8) 60*minutes;
|$label(0,15,Times New Roman,$(d8$))3600.0$hinge()$in( )second
(c9) 12.5*milliseconds;
|$label(0,15,Times New Roman,$(d9$))0.0125$hinge()$in( )second
(c10) /*** Length ***/
100*lightyear;
|$label(0,15,Times New Roman,$(d10$))9.46083e+17$hinge()$in( )meter
(c11) 2.5*parsecs;
|$label(0,15,Times New Roman,$(d11$))7.71e+16$hinge()$in( )meter
(c12) 26*miles;
|$label(0,15,Times New Roman,$(d12$))41834.0$hinge()$in( )meter
(c13) 7*yards;
|$label(0,15,Times New Roman,$(d13$))6.4008$hinge()$in( )meter
(c14) 6*feet;
|$label(0,15,Times New Roman,$(d14$))1.8288$hinge()$in( )meter
(c15) 2*inches;
|$label(0,15,Times New Roman,$(d15$))0.0508$hinge()$in( )meter
(c16) 0.7*microns;
|$label(0,15,Times New Roman,$(d16$))7.00001e-7$hinge()$in( )meter
(c17) 6*angstrom;
|$label(0,15,Times New Roman,$(d17$))6.00002e-10$hinge()$in( )meter
(c18) /*** Area ***/
1/2*acre;
|$label(0,15,Times New Roman,$(d18$))2023.43$hinge()$in( )$sup(meter,2)
(c19) /*** Volume ***/
4*gallons;
|$label(0,15,Times New Roman,$(d19$))0.01514$hinge()$in( )$sup(meter,3)
(c20) 3*quarts;
|$label(0,15,Times New Roman,$(d20$))0.00284$hinge()$in( )$sup(meter,3)
(c21) pint;
|$label(0,15,Times New Roman,$(d21$))4.73125e-4$hinge()$in( )$sup(meter,3)
(c22) 2*tablespoons;
|$label(0,15,Times New Roman,$(d22$))2.94401e-5$hinge()$in( )$sup(meter,3)
(c23) 22.4*milliliters;
|$label(0,15,Times New Roman,$(d23$))2.24e-5$hinge()$in( )$sup(meter,3)
(c24) /*** Speed ***/
60*knots;
|$label(0,15,Times New Roman,$(d24$))$q(30.8866$in( )meter,second)
(c25) 0.5*lightspeed;
|$label(0,15,Times New Roman,$(d25$))$q(1.49896e+8$in( )meter,second)
(c26) /*** Angle ***/
45*degrees;
|$label(0,15,Times New Roman,$(d26$))0.7854$hinge()$in( )radian
(c27) 0.7853982*radians;
|$label(0,15,Times New Roman,$(d27$))0.7854$hinge()$in( )radian
(c28) /*** Frequency ***/
60*cycles/second;
|$label(0,15,Times New Roman,$(d28$))$q(376.991$in( )radian,second)
(c29) 6*gigahertz;
|$label(0,15,Times New Roman,$(d29$))$q(3.76989e+10$in( )radian,second)
(c30) /* ************************************************************
2. Stress and Energy
*/
/*** Mass ***/
155*poundsmass;
|$label(0,15,Times New Roman,$(d30$))70.3068$hinge()$in( )kilogram
(c31) 16*ounces;
|$label(0,15,Times New Roman,$(d31$))0.45359$hinge()$in( )kilogram
(c32) 1*dekagram;
|$label(0,15,Times New Roman,$(d32$))0.01$hinge()$in( )kilogram
(c33) 238*amu;
|$label(0,15,Times New Roman,$(d33$))3.95138e-25$hinge()$in( )kilogram
(c34) /*** Energy ***/
btu;
|$label(0,15,Times New Roman,$(d34$))1054.35$hinge()$in( )meter$hinge()$in( )newton
(c35) 100*joules;
|$label(0,15,Times New Roman,$(d35$))100$hinge()$in( )meter$hinge()$in( )newton
(c36) 1000*ergs;
|$label(0,15,Times New Roman,$(d36$))1.0e-4$hinge()$in( )meter$hinge()$in( )newton
(c37) 13.6*ev;
|$label(0,15,Times New Roman,$(d37$))2.17884e-18$hinge()$in( )meter$hinge()$in( )newton
(c38) /*** Power ***/
150*kilowatts;
|$label(0,15,Times New Roman,$(d38$))$q(150000$in( )meter$in( )newton,second)
(c39) 75*horsepower;
|$label(0,15,Times New Roman,$(d39$))$q(55927.5$in( )meter$in( )newton,second)
(c40) /*** Force ***/
1.0E4*newtons;
|$label(0,15,Times New Roman,$(d40$))$q(10000.0$in( )kilogram$in( )meter,$sup(second,2))
(c41) 75*poundsforce;
|$label(0,15,Times New Roman,$(d41$))$q(333.617$in( )kilogram$in( )meter,$sup(second,2))
(c42) 1.0e3*dynes;
|$label(0,15,Times New Roman,$(d42$))$q(0.01$in( )kilogram$in( )meter,$sup(second,2))
(c43) /*** Pressure ***/
14.6*psi;
|$label(0,15,Times New Roman,$(d43$))$q(100663.5$in( )kilogram,meter$in( )$sup(second,2))
(c44) 100*bars;
|$label(0,15,Times New Roman,$(d44$))$q(10000000.0$in( )kilogram,meter$in( )$sup(second,2))
(c45) /*** Temperature ***/
67*degreef;
|$label(0,15,Times New Roman,$(d45$))292.778$hinge()$in( )degreekelvin
(c46) 20*degreec;
|$label(0,15,Times New Roman,$(d46$))293.0$hinge()$in( )degreekelvin
(c47) 300*degreer;
|$label(0,15,Times New Roman,$(d47$))166.667$hinge()$in( )degreekelvin
(c48) /* ************************************************************
3. Electromagnetism
*/
/*** Charge ***/
2*statcoulombs;
|$label(0,15,Times New Roman,$(d48$))6.67113e-11$hinge()$in( )coulomb
(c49) 120*esu;
|$label(0,15,Times New Roman,$(d49$))4.00276e-9$hinge()$in( )coulomb
(c50) /*** Current ***/
15*amps;
|$label(0,15,Times New Roman,$(d50$))$q(15$in( )coulomb,second)
(c51) 50*microamps;
|$label(0,15,Times New Roman,$(d51$))$q(5.00001e-5$in( )coulomb,second)
(c52) /*** Electrical Potential ***/
120*volts;
|$label(0,15,Times New Roman,$(d52$))$q(120$in( )kilogram$in( )$sup(meter,2),coulomb$in( )$sup(second,2))
(c53) 15*statvolts;
|$label(0,15,Times New Roman,$(d53$))$q(4496.89$in( )kilogram$in( )$sup(meter,2),coulomb$in( )$sup(second,2))
(c54) 12*picovolts;
|$label(0,15,Times New Roman,$(d54$))$q(1.2e-11$in( )kilogram$in( )$sup(meter,2),coulomb$in( )$sup(second,2))
(c55) /*** Magnetism ***/
100*gauss;
|$label(0,15,Times New Roman,$(d55$))$q(0.01$in( )kilogram,coulomb$in( )second)
(c56) weber;
|$label(0,15,Times New Roman,$(d56$))$q(kilogram$in( )$sup(meter,2),coulomb$in( )second)
(c57) /*** Resistance ***/
1000*ohms;
|$label(0,15,Times New Roman,$(d57$))$q(1000$in( )kilogram$in( )$sup(meter,2),$sup(coulomb,2)$in( )second)
(c58) /*** Capacitance ***/
150*microfarads;
|$label(0,15,Times New Roman,$(d58$))1.5e-4$hinge()$in( )farad
(c59) /*** Inductance ***/
10*millihenries;
|$label(0,15,Times New Roman,$(d59$))0.01$hinge()$in( )henry
(c60) /* ************************************************************
4. Miscellaneous
*/
/*** Illumination ***/
1750*lumens;
|$label(0,15,Times New Roman,$(d60$))$q(2.618$in( )kilogram$in( )$sup(meter,2),$sup(second,3))
(c61) 24*footcandles;
|$label(0,15,Times New Roman,$(d61$))$q(0.38647$in( )kilogram,$sup(second,3))
(c62) /*** Viscosity ***/
100*poise;
|$label(0,15,Times New Roman,$(d62$))$q(10.0$in( )kilogram,meter$in( )second)
(c63) /* Clean up */ reset(ratprint)$